import base from '@/api/baseurl';
import request from '@/utils/request'
/**
 * 查询转移曲线生成方案
 * @param {*} query 
 * @returns 
 */
export function findTCGarithmeticMean(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCGarithmeticMean/findTCGarithmeticMean',
    method: 'get',
    params: query
  })
}
/**
 * 查询基础曲线下拉框
 * @param {*} query 
 * @returns 
 */
export function fetchListbsall(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCGarithmeticMean/findbsall',
    method: 'get',
    params: query
  })
}
/**
 * 查询转移曲线下拉框
 * @param {*} query 
 * @returns 
 */
export function fetchListtsall(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCGarithmeticMean/findtsall',
    method: 'get',
    params: query
  })
}
/**
 * 插叙市场曲线下拉框
 * @param {*} query 
 * @returns 
 */
export function fetchListMKcurve(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/BCvDirectRef/fetchListMKcurve',
    method: 'get',
    params: query
  })
}

/**
 * 单行删除
 * @param {*} query 
 * @returns 
 */
export function deleteTCGarithmeticMean(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCGarithmeticMean/deleteTCGarithmeticMean',
    method: 'get',
    params: query
  })
}

/**
 * 添加方案
 * @param {*} data 
 * @returns 
 */
export function addTCGarithmeticMean(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCGarithmeticMean/addTCGarithmeticMean',
    method: 'post',
    data
  })
}
/**
 * 修改生成方案
 * @param {*} data 
 * @returns 
 */
export function updateTCGarithmeticMean(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCGarithmeticMean/updateTCGarithmeticMean',
    method: 'post',
    data
  })
}
/**
 * 多选删除
 * @param {*} data 
 * @returns 
 */
export function deleteTCGarithmeticMeanBatch(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCGarithmeticMean/deleteTCGarithmeticMeanBatch',
    method: 'post',
    data
  })
}

// 查询所述法人，根据曲线code
export function tcDirectReferenceFindlpname(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCDirectReference/findlpname',
    method: 'get',
    params: query
  })
}
//同步
export function syncTCGarithmeticMean(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/TCGarithmeticMean/syncTCGarithmeticMean',
    method: 'get',
    params: query
  })
}